package sort;

import java.lang.reflect.Method;
import java.util.*;

/**
 * @program: datastructureandalogorithm
 * @description:
 * @author: hmx
 * @create: 2021-12-17 17:24
 **/
public class ArraySort {

    public static void main(String[] args) {
        int[] nums = new int[]{6,5,4,3,2,1};
        List<Integer> list = Arrays.asList(6, 5, 4, 3, 2, 1);
        Arrays.sort(nums);
        Collections.sort(list);
        System.out.println(Arrays.toString(nums));
        System.out.println(list);


    }

}
